const mongoose = require('mongoose');

const postSchema = new mongoose.Schema({
  title: String,
  url: String,
  content:String,
  description: String,
  section: String,
  time: String,
  author: String,
  authorUrl: String,
  tid: { type: Number, unique: true }
});

const Post = mongoose.model('Post', postSchema);

module.exports = Post; 